package com.example.quartz.config;

import com.baomidou.mybatisplus.mapper.ISqlInjector;
import com.baomidou.mybatisplus.mapper.LogicSqlInjector;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author: wlp
 * @description: 描述：MybatisPlus配置
 * @projectName: MybatisPlusConfig
 * @date: 2019/10/14
 * @version: V1.0.0
 */
@EnableTransactionManagement
@Configuration
@MapperScan("com.example.quartz.provider.**.mapper")
public class MybatisPlusConfig {

    @Bean
    public ISqlInjector sqlInjector() {
        return new LogicSqlInjector();
    }

}
